﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using V2TEK.NET.SH.Silverlight.Charts.Core.Schedule;

namespace V2TEK.NET.SH.Silverlight.Charts.GanttHelper
{
    public class ConstriantDescriptor : IConstraintDescriptor
    {

        #region IConstraint<ITaskDescriptor> Members

        public ITaskDescriptor Task
        {
            get;
            set;
        }

        public ITaskDescriptor ForegroundTask
        {
            get;
            set;
        }

        public ConstraintType ConstraintType
        {
            get
            {
                return Core.Schedule.ConstraintType.SF;
            }
        }

        public LagOrLead LagOrLead
        {
            get
            {
                return Core.Schedule.LagOrLead.Lag;
            }
        }

        public TimeSpan Range
        {
            get
            {
                return new TimeSpan(0);
            }
        }

        #endregion

        #region IConstraintDescriptor Members

        public int Index
        {
            get;
            internal set;
        }

        #endregion
    }
}
